import { createRouter, createWebHistory } from 'vue-router'
import homeView from '@/views/home/home.vue'
import indexView from '@/views/home/index.vue'
import cyqView from '@/views/home/cyq.vue'
import erscView from '@/views/home/ersc.vue'
import xcView from '@/views/home/xc.vue'
import fwView from '@/views/home/fw.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/home/index' },
    { path: '/home', name: 'home', component: homeView, children:[
    { path: 'index', name: 'index', component: indexView, },
    { path: 'cyq', name: 'cyq', component: cyqView, },
    { path: 'ersc', name: 'ersc', component: erscView, },
    { path: 'xc', name: 'xc', component: xcView, },
    { path: 'fw', name: 'fw', component: fwView, },
    ]},

  ],
})

export default router
